﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UFIDA.U9.Base.Profile;

namespace UFIDA.U9.YD.Cli.PlugBE.YD
{
    internal class YDUtils
    {
        public static string GetParam(string code)
        {
            Profile profile = Profile.Finder.Find($"Code='{code}'");
            if (profile == null || profile.ProfileValues==null|| profile.ProfileValues.Count==0)
                return "";

            return profile.ProfileValues[0].Value;
        }
    }
}
